/*
 * Created on Jul 1, 2004
 */
package com.scalar.chiptrack.operations.reports;

import com.scalar.chiptrack.utils.StringUtils;

import java.util.ArrayList;
import java.util.LinkedHashMap;

/**
 * @author Ravikanth
**/
public class WipFlushByMonth
{
	private String partNumber = null;
	private String vendor = null;
	private String lotNumber = null;
	
	private int month1Qty = 0;
	private int month2Qty = 0;
	private int month3Qty = 0;
	private int month4Qty = 0;
	private int month5Qty = 0;
	private int month6Qty = 0;
	private int month7Qty = 0;
	private int month8Qty = 0;
	private int month9Qty = 0;
	private int month10Qty = 0;
	private int month11Qty = 0;
	private int month12Qty = 0;
	private int total = 0;
	
	private int productId = 0;
	private int lotId = 0;
	private LinkedHashMap childMap = null;
	private ArrayList products = null;

    /**
     * @return
     */
    public LinkedHashMap getChildMap()
    {
        return childMap;
    }

    /**
     * @return
     */
    public int getLotId()
    {
        return lotId;
    }

    /**
     * @return
     */
    public String getLotNumber()
    {
        return lotNumber;
    }

    /**
     * @return
     */
    public int getMonth10Qty()
    {
        return month10Qty;
    }

    /**
     * @return
     */
    public int getMonth11Qty()
    {
        return month11Qty;
    }

    /**
     * @return
     */
    public int getMonth12Qty()
    {
        return month12Qty;
    }

    /**
     * @return
     */
    public int getMonth1Qty()
    {
        return month1Qty;
    }

    /**
     * @return
     */
    public int getMonth2Qty()
    {
        return month2Qty;
    }

    /**
     * @return
     */
    public int getMonth3Qty()
    {
        return month3Qty;
    }

    /**
     * @return
     */
    public int getMonth4Qty()
    {
        return month4Qty;
    }

    /**
     * @return
     */
    public int getMonth5Qty()
    {
        return month5Qty;
    }

    /**
     * @return
     */
    public int getMonth6Qty()
    {
        return month6Qty;
    }

    /**
     * @return
     */
    public int getMonth7Qty()
    {
        return month7Qty;
    }

    /**
     * @return
     */
    public int getMonth8Qty()
    {
        return month8Qty;
    }

    /**
     * @return
     */
    public int getMonth9Qty()
    {
        return month9Qty;
    }

    /**
     * @return
     */
    public String getPartNumber()
    {
        return partNumber;
    }

    /**
     * @return
     */
    public int getProductId()
    {
        return productId;
    }

    /**
     * @return
     */
    public ArrayList getProducts()
    {
        return products;
    }

    /**
     * @return
     */
    public int getTotal()
    {
        return total;
    }

    /**
     * @return
     */
    public String getVendor()
    {
        return vendor;
    }

    /**
     * @param map
     */
    public void setChildMap(LinkedHashMap map)
    {
        childMap = map;
    }

    /**
     * @param i
     */
    public void setLotId(int i)
    {
        lotId = i;
    }

    /**
     * @param string
     */
    public void setLotNumber(String string)
    {
        lotNumber = string;
    }

    /**
     * @param i
     */
    public void setMonth10Qty(int i)
    {
        month10Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth11Qty(int i)
    {
        month11Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth12Qty(int i)
    {
        month12Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth1Qty(int i)
    {
        month1Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth2Qty(int i)
    {
        month2Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth3Qty(int i)
    {
        month3Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth4Qty(int i)
    {
        month4Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth5Qty(int i)
    {
        month5Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth6Qty(int i)
    {
        month6Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth7Qty(int i)
    {
        month7Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth8Qty(int i)
    {
        month8Qty = i;
    }

    /**
     * @param i
     */
    public void setMonth9Qty(int i)
    {
        month9Qty = i;
    }

    /**
     * @param string
     */
    public void setPartNumber(String string)
    {
        partNumber = string;
    }

    /**
     * @param i
     */
    public void setProductId(int i)
    {
        productId = i;
    }

    /**
     * @param list
     */
    public void setProducts(ArrayList list)
    {
        products = list;
    }

    /**
     * @param i
     */
    public void setTotal(int i)
    {
        total = i;
    }

    /**
     * @param string
     */
    public void setVendor(String string)
    {
        vendor = string;
    }

    // Added by Basha (07/20/2004)
    public String getFormattedMonth1Qty(){
        return StringUtils.getUSNumberFormat(month1Qty);
    }
    public String getFormattedMonth2Qty(){
        return StringUtils.getUSNumberFormat(month2Qty);
    }
    public String getFormattedMonth3Qty(){
        return StringUtils.getUSNumberFormat(month3Qty);
    }
    public String getFormattedMonth4Qty(){
        return StringUtils.getUSNumberFormat(month4Qty);
    }
    public String getFormattedMonth5Qty(){
        return StringUtils.getUSNumberFormat(month5Qty);
    }
    public String getFormattedMonth6Qty(){
        return StringUtils.getUSNumberFormat(month6Qty);
    }
    public String getFormattedMonth7Qty(){
        return StringUtils.getUSNumberFormat(month7Qty);
    }
    public String getFormattedMonth8Qty(){
        return StringUtils.getUSNumberFormat(month8Qty);
    }
    public String getFormattedMonth9Qty(){
        return StringUtils.getUSNumberFormat(month9Qty);
    }
    public String getFormattedMonth10Qty(){
        return StringUtils.getUSNumberFormat(month10Qty);
    }
    public String getFormattedMonth11Qty(){
        return StringUtils.getUSNumberFormat(month11Qty);
    }
    public String getFormattedMonth12Qty(){
        return StringUtils.getUSNumberFormat(month12Qty);
    }

	public String toString()
	{	
		StringBuffer buf = new StringBuffer();
		buf.append (" Part Number : ").append ( partNumber );
		buf.append (" Vendor: ").append ( vendor );
		buf.append (" Lot: ").append ( lotNumber );
		buf.append (" Month1: ").append ( month1Qty );
		buf.append (" Month2: ").append (month2Qty);
		buf.append (" Month3: ").append (month3Qty);
		buf.append (" Month4: ").append (month4Qty);
		buf.append (" Month5: ").append (month5Qty);
		buf.append (" Month6: ").append (month6Qty);
		buf.append (" Month7: ").append	( month7Qty );
		buf.append (" Month8: ").append	( month8Qty );
		buf.append (" Month9: ").append	( month9Qty );
		buf.append (" Month10: ").append ( month10Qty );
		buf.append (" Month11: ").append ( month11Qty );
		buf.append (" Month12: ").append ( month12Qty );
		buf.append (" Total: ").append( total ).append (" ]\n");
		return buf.toString();
	}
}